#include <iostream>
using namespace std;
class Student
{
    public:
         Student();
         ~Student();
         void   setName(string name);
         string getName() const;
         void   setAge(int age);
         int    getAge() const;
         Student(int age,string name){  cout<<"带参构造函数"<<endl;};
         Student(const Student & a){
      cout << "使用拷贝构造函数初始化参数" <<endl;
  }  
    private:
        string name;
        int age;
};
Student::Student(){
    cout<<"构造函数"<<endl;
}
Student::~Student(){
    cout<<"析构函数"<<endl;
}

void Student::setName(string name){
    this->name=name;
}

string Student::getName() const
{
    return name;
}

void Student::setAge(int age){
    this->age=age;
}

int Student::getAge() const{
    return age;
}
void abc(Student s){
    cout<<"=======👽=======" <<endl;
}

int main (){
   Student stu;
   Student stu2(16,"云天明");
   stu.setName("罗辑");
   stu.setAge(18);
   abc(stu2);

   cout<< "My name is "<<stu.getName()<<"向三体世界讲话"<<endl;
   
  return 0;
}